package com.taiyuan.ty.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
/**
 * @author : 周桓宇
 * @description :
 * @createDate : 2025/3/25 下午2:34
 */
@Data
@TableName("places")
public class Place implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("description")
    private String description;

    @TableField("address")
    private String address;

    @TableField("latitude")
    private String latitude;

    @TableField("longitude")
    private String longitude;

    @TableField("images")
    private String images;
//    private Integer categoryId;

    @TableField("user_id")
    private Long userId;

    @TableField("like_count")
    private Integer likeCount;

    @TableField("favorite_count")
    private Integer favoriteCount;

    @TableField("create_time")
    private Date createTime;
}